Skip to content

T4/base pr 153 - #171

Open
SuperNova-W wants to merge 7 commits into
masterfrom
t4/base-pr-153
Open

SuperNova-W wants to merge 7 commits into
masterfrom
t4/base-pr-153

Conversation

@SuperNova-W

Copy link
Copy Markdown
Collaborator

Description

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Chore / dependency update

Testing

Screenshots

Checklist

  • Self-reviewed my own code
  • No console.log / debug statements left in
  • Tested locally

Add the horizon_ranking calculation schema (rubric_versions, ranking_runs, ranked_members, metric_values, member_scores, calibration_notes) and the shared horizon_api.publications table to schema.sql. Every statement is idempotent.

Add pipeline/ranking with the v1 rubric YAML and a pydantic loader. The loader rejects bucket weights or metric shares that don't sum to 100, and refuses a changed file under an existing rubric version.

Add the 08_ranking Dagster assets. ranking_run opens a run with source provenance and fails it when a project repository has no complete feature run in the 8 days before as_of. ranked_members snapshots tech leads (club-wide) and engineers (per project) from the T1.1 roster tables.
Add pipeline/ranking/metrics_code.py with pure functions for
files_majority_owned, non_boundary_lines, surviving_commits,
active_week_ratio, longest_inactive_stretch, team_end_loading and
tenure_semesters, and the code_and_tenure_metrics asset that writes
them to horizon_ranking.metric_values. Rows follow the role's rubric,
missing data is NULL with a reason, and re-running replaces only this
step's metric keys for the run.
Add pipeline/ranking/metrics_reviews.py (prs_reviewed, team_prs_reviewed,
review_turnaround_hours, collaborative_prs, review_spread) and
pipeline/ranking/metrics_survey.py (the eng_* and lead_* ratings), and
the review_and_rating_metrics asset that writes them to
horizon_ranking.metric_values. Rows follow the role's rubric and skip
buckets the run excluded. Co-authored-by trailers are not read, and the
survey means use a stand-in for T3.4's semester_rating_means until it
merges.
…ings

Review metrics for an as_of before window_start are now NULL with
window_not_started instead of 0, as in T4.2. Survey means ignore a
member's rating of themself and answers with no submitted_at.

Tests now cover REQUEST_CHANGES, teammates in any role, merges outside
the window, PRs opened before the window, events in other repositories,
re-requests answered by a later review, two projects' teammates, rating
rows for an excluded review bucket, the SELECT column order of every
ranking reader, and that the metric steps own disjoint keys.
Adds the delivery_metrics asset, which writes verified_completion for engineers and team_verified_completion for tech leads from T5.4's sow_task_status for the ranking run's project_run_id, with the latest sow_task_overrides row set by as_of applied. Tasks without a due date count once the project's real window_end has passed. With no published project run, or no tasks for the project in it, both roles get no_sow.
Overrides set at the same moment are ordered by override_id, so the result no longer depends on row order. New tests cover partial and not_done overrides, an override set exactly at as_of, a task due today, the club date near midnight UTC, and a NULL project run with real tasks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants